package com.example.companybusiness.operationt.room;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

//一张表
@Entity
public class SearchBox {
    //主键唯一，主键自动自增
    @PrimaryKey(autoGenerate = true)
    private int id;
    //字段，搜索内容
    @ColumnInfo(name = "search_content")
    private String searchcontent;

    public SearchBox(int id, String searchcontent) {
        this.id = id;
        this.searchcontent = searchcontent;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSearchcontent() {
        return searchcontent;
    }

    public void setSearchcontent(String searchcontent) {
        this.searchcontent = searchcontent;
    }

    @Override
    public String toString() {
        return "SearchBox{" +
                "id=" + id +
                ", searchcontent='" + searchcontent + '\'' +
                '}';
    }
}

